<?php
/*
	if( strcmp(basename($_SERVER['SCRIPT_NAME']), basename(__FILE__)) == 0 ) {
		header('Location: ./');
		exit;
	}
*/
	//error_reporting(E_ALL);
	error_reporting(0);
	// define the necessary constants
	define('ABS_URL', 'http://www.televisiontunes.com/');
	//define('ABS_URL', 'http://localhost/TelevisionTunes/new/');
	define('ROOT_DIR',getcwd().'/');
	define('PAGE_EXTENSION' , '.html');
	// end constants

	// setup the database connection
	$db_host = 'localhost';
	$db_name = 'db222321495';
	$db_user = 'dbo222321495';
	$db_pass = '3yeNMEHj';

	
	$conn = mysql_connect($db_host, $db_user, $db_pass) or die('Database setup corrupted');
	mysql_select_db($db_name, $conn) or die('Cannot access the database');
	// end database setup
	
	// include the libraries
	include('./lib/utils.class.php');
	// end libraries
?>